home *** CD-ROM | disk | FTP | other *** search
/ Amiga Format CD 41 / Amiga Format CD41 (1999-06)(Future Publishing)(GB)[!][issue 1999-07].iso / -seriously_amiga- / programming / other / ppc_c2p / noe_ppc_c2p.readme < prev    next >
Text File  |  1999-04-19  |  1KB  |  31 lines

  1. Short:      ppc c2p converters (8bpp and 15bpp)
  2. Author:   Jacek Cybularczyk (noe^venus art)
  3. Uploader: elf^va (bjsebo@jota.ii.tuniv.szczecin.pl)
  4. Type:     dev/asm
  5.  
  6.  This archive contains 2 c2p converters written by Noe. Both
  7. are very fast (actually I did not find any faster c2p for ppc).
  8.  
  9. Two functions are included:
  10.  
  11. VOID RGB15_TO_HAM6_NI(UWORD *RGB15, ULONG **Planes,ULONG Width, ULONG Height);
  12.  Chunky buffer must be filled with 15bit rgb values (0rrrrrgggggbbbbb).
  13. Conversion is done to first 4 planes plane 5 and 6 should be filled
  14. with mask values:
  15.    plane5 = 0x77777777
  16.    plane7 = 0xeeeeeeee;
  17. Remember that you need to open HAM6 screen (depth = 6), to use this c2p()
  18.  
  19. VOID C2P_NI(UBYTE *Chunky, ULONG **Planes,ULONG Width, ULONG Height);
  20. Nothing fancy here. Simple (but fast) c2p routine. Converts 8 bit
  21. chunky (paletized mode) to planar display.
  22.  
  23. Also look at HowToUse.c. There is an example (and a speed test) in C.
  24.  
  25. And if you can make this c2p routines faster - please contact us.
  26.  
  27. You can use this c2p routines for any purposes. But if you use it, 
  28. please put my name in credit part.
  29.  
  30.    Jacek Cybularczyk.
  31.